package com.zhiyou100.mapper;

import com.zhiyou100.model.Video;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface VideoMapper {

    List<Video> findAll(@Param("title") String title,@Param("speakerId") Integer speakerId,@Param("courseId") Integer courseId);

    Video findById(@Param("id") Integer id);

    void update(@Param("video") Video video);

    void delete(@Param("id") Integer id);

    void add(@Param("video") Video video);

    List<Video> findByCourseId(@Param("id") Integer id);
}
